<?php
$this->beginWidget('zii.widgets.jui.CJuiDialog', array(
	'id'=>$id,
	// additional javascript options for the dialog plugin
	'options'=>$options,
	'themeUrl'=>Yii::app()->theme->baseUrl.'/css',
	'theme'=>'smoothness',
));
 
echo CHtml::openTag('div',array('class'=>'loading'));
echo CHtml::image(Yii::app()->theme->baseUrl.'/css/loading.gif');
echo Chtml::closeTag('div')."\n";
echo CHtml::openTag('div',array('id'=>$div))."\n";
echo Chtml::closeTag('div')."\n";
 
$this->endWidget('zii.widgets.jui.CJuiDialog');
?>